package almacenes.modelo.entidad;
// Generated 16/02/2012 04:45:02 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * GuiaSolicitud generated by hbm2java
 */
@Entity
@Table(name="GUIA_SOLICITUD"
    , uniqueConstraints = @UniqueConstraint(columnNames={"ID_GUIA", "ID_SOLICITUD"}) 
)
public class GuiaSolicitud  implements java.io.Serializable {


     private long idGuiaSolicitud;
     private Solicitud solicitud;
     private GuiaRemision guiaRemision;
     private String usuReg;
     private Date fecReg;

    public GuiaSolicitud() {
    }

	
    public GuiaSolicitud(long idGuiaSolicitud, Solicitud solicitud, GuiaRemision guiaRemision) {
        this.idGuiaSolicitud = idGuiaSolicitud;
        this.solicitud = solicitud;
        this.guiaRemision = guiaRemision;
    }
    public GuiaSolicitud(long idGuiaSolicitud, Solicitud solicitud, GuiaRemision guiaRemision, String usuReg, Date fecReg) {
       this.idGuiaSolicitud = idGuiaSolicitud;
       this.solicitud = solicitud;
       this.guiaRemision = guiaRemision;
       this.usuReg = usuReg;
       this.fecReg = fecReg;
    }
   
     @Id 

    
    @Column(name="ID_GUIA_SOLICITUD", unique=true, nullable=false, precision=10, scale=0)
    public long getIdGuiaSolicitud() {
        return this.idGuiaSolicitud;
    }
    
    public void setIdGuiaSolicitud(long idGuiaSolicitud) {
        this.idGuiaSolicitud = idGuiaSolicitud;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_SOLICITUD", nullable=false)
    public Solicitud getSolicitud() {
        return this.solicitud;
    }
    
    public void setSolicitud(Solicitud solicitud) {
        this.solicitud = solicitud;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="ID_GUIA", nullable=false)
    public GuiaRemision getGuiaRemision() {
        return this.guiaRemision;
    }
    
    public void setGuiaRemision(GuiaRemision guiaRemision) {
        this.guiaRemision = guiaRemision;
    }

    
    @Column(name="USU_REG", length=10)
    public String getUsuReg() {
        return this.usuReg;
    }
    
    public void setUsuReg(String usuReg) {
        this.usuReg = usuReg;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="FEC_REG", length=7)
    public Date getFecReg() {
        return this.fecReg;
    }
    
    public void setFecReg(Date fecReg) {
        this.fecReg = fecReg;
    }




}


